import type { Route } from '../index.type'
import Layout from '@/layout/index.vue'
import { createNameComponent } from '../createNode'
const route: Route[] = [
  {
    path: '/atdanceOffice',
    component: Layout,
    redirect: '/atdanceOffice/report',
    meta: { title: 'message.menu.atdanceOffice.name', icon: 'sfont system-24gl-printer' },
    children: [
      {
        path: 'report',
        component: createNameComponent(() => import('@/views/main/atdanceOffice/report/index.vue')),
        meta: { title: 'message.menu.atdanceOffice.report', icon: '' }
      },
      {
        path: 'leave',
        component: createNameComponent(() => import('@/views/main/atdanceOffice/leave/index.vue')),
        meta: { title: 'message.menu.atdanceOffice.leave', icon: '' }
      },
      {
        path: 'overtime',
        component: createNameComponent(() => import('@/views/main/atdanceOffice/overtime/index.vue')),
        meta: { title: 'message.menu.atdanceOffice.overtime', icon: '' }
      },
      {
        path: 'approval',
        component: createNameComponent(() => import('@/views/main/atdanceOffice/approval/index.vue')),
        meta: { title: 'message.menu.atdanceOffice.approval', icon: '' }
      }
    ],
  }
]

export default route